package com.blog.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.blog.dao.PostDao;
import com.blog.domain.Post;
import com.blog.service.base.BaseService;

@Service
public class PostService extends BaseService {
    @Autowired
    private PostDao postDao;

    @Override
    public List<Post> getPosts() {
        return postDao.getTop10Posts();
    }
}
